package com.zy.server;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * @author 张鑫
 * @date 2020/11/28 10:39
 */
@SpringBootApplication
@MapperScan(basePackages = "com.zy.server.dao")
@EnableDiscoveryClient // 发布服务
@EnableTransactionManagement // 启用事务管理器
public class AuthServerApplication {
    public static void main(String[] args) {
        SpringApplication.run(AuthServerApplication.class,args);
    }
}
